package com.ruoyi.webs.hzhelp.advice.service.impl;

import java.util.List;

import com.ruoyi.webs.hzhelp.advice.domain.HzHelpAdvice;
import com.ruoyi.webs.hzhelp.advice.mapper.HzHelpAdviceMapper;
import com.ruoyi.webs.hzhelp.advice.service.IHzHelpAdviceService;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 投诉建议Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-03
 */
@Service
public class HzHelpAdviceServiceImpl implements IHzHelpAdviceService
{
    private HzHelpAdviceMapper hzHelpAdviceMapper;

    /**
     * 查询投诉建议
     * 
     * @param ID 投诉建议主键
     * @return 投诉建议
     */
    @Override
    public HzHelpAdvice selectHzHelpAdviceByID(String ID)
    {
        return hzHelpAdviceMapper.selectHzHelpAdviceByID(ID);
    }

    /**
     * 查询投诉建议列表
     * 
     * @param hzHelpAdvice 投诉建议
     * @return 投诉建议
     */
    @Override
    public List<HzHelpAdvice> selectHzHelpAdviceList(HzHelpAdvice hzHelpAdvice)
    {
        return hzHelpAdviceMapper.selectHzHelpAdviceList(hzHelpAdvice);
    }

    /**
     * 新增投诉建议
     * 
     * @param hzHelpAdvice 投诉建议
     * @return 结果
     */
    @Override
    public int insertHzHelpAdvice(HzHelpAdvice hzHelpAdvice)
    {
        return hzHelpAdviceMapper.insertHzHelpAdvice(hzHelpAdvice);
    }

    /**
     * 修改投诉建议
     * 
     * @param hzHelpAdvice 投诉建议
     * @return 结果
     */
    @Override
    public int updateHzHelpAdvice(HzHelpAdvice hzHelpAdvice)
    {
        return hzHelpAdviceMapper.updateHzHelpAdvice(hzHelpAdvice);
    }

    /**
     * 批量删除投诉建议
     * 
     * @param IDs 需要删除的投诉建议主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpAdviceByIDs(String IDs)
    {
        return hzHelpAdviceMapper.deleteHzHelpAdviceByIDs(Convert.toStrArray(IDs));
    }

    /**
     * 删除投诉建议信息
     * 
     * @param ID 投诉建议主键
     * @return 结果
     */
    @Override
    public int deleteHzHelpAdviceByID(String ID)
    {
        return hzHelpAdviceMapper.deleteHzHelpAdviceByID(ID);
    }
}
